
In this lab, you will learn how to design smooth and engaging microinteractions for basic UI elements such as buttons, toggles, and icons. You'll use Figma's prototyping features and variants to simulate interactive behaviors that respond to user actions like clicks or hovers. This experience will help you build user-friendly designs that communicate feedback, status changes, and enhance the overall UX of a digital product.
By the end of this lab, you will be able to:
Note: If this is your first time using Figma, we recommend creating an account. To do this, right-click Getting Started with Figma and open it in a new tab to sign up.
Microinteractions are the small, functional animations that bring a user interface to life. From a heart icon that fills when clicked to a button that turns into a spinner while loading, these subtle moments of interaction play a big role in improving user engagement and providing visual feedback. In this lab, you'll explore how to design such microinteractions using Figma, focusing on real-world examples from an online wellness store. You'll learn to use Variants, Prototype links, and Smart Animate transitions to simulate user behavior and elevate the usability of your UI components. By the end of this lab, you'll be able to create and preview interactive elements that feel responsive, intuitive, and polished.
Design brief You are working on the design for an e-commerce website selling organic skincare and wellness products. The brand wants to offer a delightful and intuitive experience by adding microinteractions to its product pages. Your task is to design a microinteractive element that simulates real user behavior:
This subtle animation will help users feel in control and receive feedback when they interact with the interface.
Part 1: Getting started
Step 1: Open Figma and create a new file
Open Figma in a new tab by right-clicking this link and logging in.
After logging in, you will be redirected to your Figma Dashboard, click the "Design" card visible in the dashboard, as shown in given screenshot with highighted red border. 
It opens a blank canvas titled "Untitled". 
Click the Untitled file name at the top and rename it.

Part 2: Create a wireframe
In this part, you will create wireframe structure which will include heading, subheading, products display cards with add to cart button, and one icon for favorite product.
Step 1: Create header section First, create the header section by following the given steps:




Step 2: Create product card

Product-3.

Step 3: Create button and favorite icon



Note: After using the Ctrl + D command, if you don't see the duplicated button, it may be hidden beneath the original—try dragging the original button to reveal the duplicate and use it to create a variant.







Part 3: Create microinteractions
In this section, you'll create a microinteraction—for example, selecting the heart icon to add a product to the wishlist, which changes the black heart icon to red to indicate it has been selected.


Follow the given steps to create microinteractions:
At the top-right, you've clicked on the "Prototype" tab. This allows you to define interactions between components and frames.
You selected the heart icon component (named Component 1) which has multiple variants (likely filled and outlined heart).
Click the "+"button under Interactions at number 3 is used to create a new event (e.g., what happens when someone clicks the heart icon).
You set the Trigger to On Click. This means the interaction will activate when a user clicks the heart icon.
Action "Change to "tells Figma to change the variant of the component when clicked. You're switching from one version of the heart (e.g., outline) to another (e.g., filled).
Property "Heart" defines which property or variant is being changed. In this case, the property controlling the heart's appearance (e.g., outlined vs. filled) is named Heart.
Animation "Instant" is used for the transition to happen instantly without any animation. You could choose other options like "Smart Animate" if you want a smoother visual effect.

Now select the variants and drag them outside the desktop frame.

Now click on Asset tab and then select the component box under the libraries represented at number 2 in the given screenshot.

After clicking the component box, you'll see the heart icon component. Click the icon, and a pop-up box will appear—you can then drag the icon to place it exactly where you want.

After placing the heart icon, the entire frame will look like according to given screenshot. Then, click Present icon from the top right corner and it will open the preview section.

In the preview of this wireframe, the output will be according to the given screenshot.

Then click the heart icon; it will change to red color heart icon.

The final design can be previewed after clicking the preview button.
In this lab:
Richa Arora